<%@ page language="java" import="java.util.*" pageEncoding="UTF-8"%>
<%@ taglib prefix="privilege" uri="http://www.itcast.cn/privilege"%>
<!doctype html>
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8" />

<title>添加图书</title>
<link rel="stylesheet"
	href="${pageContext.request.contextPath }/css/style.css"
	type="text/css" media="screen" />
<link rel="stylesheet"
	href="${pageContext.request.contextPath }/css/substyle.css"
	type="text/css" media="screen" />
</head>

<body>
    <p class="topbar">&nbsp;</p>
		
		<div id="submain">
		<!-- art-header -->
			<div class="art-header">
				<div class="art-header-png"></div>
				<div class="estore">
					<h1 style="font-size:35px;margin:60px 0 20px 0;">Estore<br>图书商城</h1> 
					<span style="color:red;">当前用户：duhong</span>
					
			
			</div>
		</div> 
	<privilege:estore user="${user}"/>
	
	<form action="${pageContext.request.contextPath}/addProduct"
		method="post" enctype="multipart/form-data">
		<table border="1" width="100%" id="addtable">
			<tr>
				<td class="first">商品名称</td>
				<td><input type="text" name="name"></td>
			</tr>

			<tr>
				<td class="first">商品价格</td>
				<td><input type="text" name="price"></td>
			</tr>

			<tr>
				<td class="first">商品类别</td>
				<td><select name="category" style="width:202px;height:35px;border:#f8e49b solid 1px;margin-left:20px;font-size:15px;color:#87520E;">
						<option>--请选择类别--</option>
						<option value="novel">小说</option>
						<option value="cartoon">童书</option>
						<option value="study">学习考试</option>
						<option value="literature">文学</option>
						<option value="music">音乐</option>
						<option value="art">艺术</option>
						<option value="science">科技</option>
				</select></td>
			</tr>

			<tr>
				<td class="first">商品数量</td>
				<td><input type="text" name="pnum"></td>
			</tr>
			<tr>
				<td class="first" >商品出版时间</td>
				<td><input type="date" name="dnum" style="font-size:15px;"></td>
			</tr>

			<tr>
				<td class="first">商品图片</td>
				<td><input type="file" name="f" style="width:202px;height:35px;border:#f8e49b solid 1px;margin-left:20px;font-size:15px;color:#87520E;"></td>
			</tr>

			<tr>
				<td class="first">商品描述</td>
				<td><textarea name="description" rows="11" cols="50"  style="font-size:15px;margin-left:20px;color:#87520E;"></textarea>
				</td>
			</tr>

			<tr>
				<td colspan="2" align="left" ><input type="submit"
					value="添加商品" class="addin" style="margin-left:218px;margin-right:15px;"> <input type="reset" value="取消" class="addin" style="margin-left:-1px;"></td>
			</tr>
		</table>

	</form>
	</div>
	 <footer style="padding-bottom:20px;margin-top:20px;" id="footer">
        
            <div>&nbsp;</div>
            <p style="background:#87520E; height:40px;">&nbsp;</p>
    </footer>
</body>
</html>
